#ifndef BALL_H
#define BALL_H
#include "sprite.h"
#include "player.h"
class Ball:public Sprite{
public:
	Ball(const Vector2f& pos, const Vector2f& vel,const Frame* f);

    ~Ball(){cout<<"delete ball"<<endl;}
	void update(unsigned);
	void draw() const;
	
	void update(Player *player);
	
	bool isEmitted() const{
		return emitted;
	}
	
	bool isCollided() const {
		return collided;
	}
	void setCollided(bool c){
		collided = c;
	}
	void toggleEmitted() {
		emitted = !emitted;
	}
private:
    Ball(const Ball&);
    Ball& operator=(const Ball&);
    bool collided;
    bool emitted;
};
#endif
